package com.mianyang.zhangsan.model.entity;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

@Data
public class SecPaperBankGroup {
    /**
     * 关系编号
     */
    @TableId(type = IdType.AUTO)
    private Long relationId;

    /**
     * 试卷编号
     */
    private Long paperId;

    /**
     * 题库编号
     */
    private Long bankId;

    /**
     * 题目总数
     */
    private Integer problems;

    /**
     * 题目类型
     */
    private Integer problemType;

    @TableField(value = "count(*)", insertStrategy = FieldStrategy.NEVER, updateStrategy = FieldStrategy.NEVER)
    private int count;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
